﻿using CompanyManageSystem.DLL;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompanyManageSystem.Model
{
    [Table("Material")]
    public class Material : BaseEntity
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public Guid UnitID { get; set; }
        /// <summary>
        /// 产地
        /// </summary>
        public string Place { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        public Guid? CategoryID { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 供应商ID
        /// </summary>
        public Guid? SupplierID { get; set; }

        public virtual Unit Unit { get; set; }

        [NotMapped]
        public bool IsChecked { get; set; }
    }
}
